import * as React from 'react';
import classNames from 'classnames';

export interface IconProps {
	children?: React.ReactNode;
	className?: string;
	name?: string;
}

const Icon: React.FC<IconProps> = props => {
	const prefixCls = 'bh-icon';
	const {
		children,
		className,
		name,
		...restProps
	} = props;
	const classString = classNames(
		prefixCls,
		`${prefixCls}-${name}`,
		className,
	);
	const handleCloseClick = (e:any) => {
	    e.stopPropagation();
	}

	return (
		<i {...restProps} className={classString}>
		    {children}
		</i>
	)
};

export default Icon;